<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a href="{% url 'index' %}">返回界面</a>
<table border="1">
    <tr>
        <td>标题</td>
        <td>内容</td>
        <td>类型</td>
        <td>作者</td>
    </tr>
{% for foo in blog %}
    <tr>
        <td>
            {{ foo.title }}
        </td>
        <td>
            {{ foo.content }}
        </td>
        <td>
            {{ foo.btype}}
        </td>
        <td>
            {{ foo.author.name }}
        </td>
    </tr>
{% endfor %}
</table>
</body>
</html>